package com.wanpinghui.wphlibrary.photovideo.bean;

import com.yunshl.yunshllibrary.utils.TextUtil;

/***
 * 功能描述:
 * 作者:qiujialiu
 * 时间:2016/12/19
 * 版本:1.0
 ***/

public class BaseUrlBean {
    protected String url;
    protected int type;//1图片2视频
    protected int seq_ ;
    protected int width;
    protected int height;
    protected String thumb_url;

    public String getThumb_url() {
        return thumb_url;
    }

    public String getThumbUrl() {
        if (TextUtil.isNotEmpty(url)) {

                return url+"_thumbnail";


        }
        return url;
    }

    public String getThumbUrl1() {
        if (TextUtil.isNotEmpty(url)) {
            if (url.endsWith("_thumbnail")){
                return  url;
            }else {
                return url+"_thumbnail";
            }

        }
        return url;
    }

    public void setThumb_url(String thumb_url) {
        this.thumb_url = thumb_url;
    }


    public int getSort_() {
        return seq_ ;
    }

    public void setSort_(int sort_) {
        this.seq_  = sort_;
    }
    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }



    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getType_() {
        return type;
    }

    public void setType_(int type_) {
        this.type = type_;
    }


}
